package com.dao;

import com.model.PermissionRole;
import com.vo.PermissionRoleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PermissionRole record);

    int insertSelective(PermissionRole record);

    PermissionRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PermissionRole record);

    int updateByPrimaryKey(PermissionRole record);

    List<PermissionRole> selectRoleList();

    List<PermissionRole> selectRoleListByIds(List<Long> roleIdListByAccountId);

    List<PermissionRole> selectRoleListByAgent(@Param("agent") Long currentUserLeaderId);
}